import http from '@/services/http';

export function getAllList<T>() {
  return http.post<Requestor.Response<T>>('/api/admin/GoodsClassify/all/list');
}

export function getInfo<T>(params: GoodsClassifyManagementApi.InfoParams) {
  return http.get<Requestor.Response<T>>('/api/admin/GoodsClassify/all/one/info', {
    params,
  });
}
export function create(params: GoodsClassifyManagementApi.CreateParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/GoodsClassify/create', {
    data: params,
  });
}
export function update(params: GoodsClassifyManagementApi.UpdateParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/GoodsClassify/update', {
    data: params,
  });
}
export function remove(params: GoodsClassifyManagementApi.DeleteParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/GoodsClassify/delete', {
    data: params,
  });
}
